import numpy as np
import matplotlib.pyplot as plt
import sys

filename = sys.argv[1]

with open(filename,"r") as f:
    x = np.array(eval(f.readline()))
    y = np.array(eval(f.readline()))
    plt.scatter(x, y)
f.close()

plt.savefig(filename[:-4]+".png")